package com.j1903.contorller;

import com.j1903.bean.Goodscategory;
import com.j1903.service.GoodscategoryService;
import com.j1903.util.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/on")
@Slf4j
@CrossOrigin
public class On {
//    @Resource
//    private GoodscategoryService goodsService;
//    @RequestMapping("/list")
//    public JsonResult add(@RequestBody Goodscategory obj)
//    {
//        List<Goodscategory> st=goodsService.getWithSub(obj);
//        System.out.println(st);
//        return new JsonResult(200,"查询成功",st);
//    }
}
